<?php
class member{
	public function init($params=array()){
		$this->db=$this->yum->library($this->yum->vars('app','database'));
		$this->prefix=$this->yum->vars('app','prefix');
	}
    public function GMember($params=array()){
    	return $this->db->select($this->prefix.'member AS A',$params);
    }
	public function IMember($params,$mode=0){
		return $this->db->insert($this->prefix.'member',$params,$mode);
	}
	public function UMember($params){
		return $this->db->update($this->prefix.'member',$params);
	}
}
?>